package com.situ.day23.factory3;

public class Demo {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        //IFactory factory = new DellFactory();
        IFactory factory = (IFactory) Class.forName("com.situ.day23.factory3.HPFactory").newInstance();

        IKeyboard keyboard = factory.createKeyboard();
        IMonitor monitor = factory.createMonitor();
    }
}
